import { IsArray, IsBoolean, IsInt, IsNotEmpty, IsObject, IsOptional, IsString, Max, MaxLength, Min } from "class-validator";

export default class CreateDto{
    @MaxLength(20)
    @IsNotEmpty()
    @IsString()
    name: string;

    @MaxLength(20)
    @IsNotEmpty()
    @IsString()
    key: string;

    @MaxLength(20)
    @IsNotEmpty()
    @IsString()
    inputType: string;

    @IsArray()
    @IsOptional()
    options: any[];

    @MaxLength(20)
    @IsString()
    @IsOptional()
    unit: string;


    @IsBoolean()
    @IsOptional()
    enable: boolean;
}